from django.db import models

# Create your models here.

class UserModel(models.Model):
    phone = models.CharField('手机号', max_length=11)
    password = models.CharField('密码', max_length=128)
    class Meta:
        db_table = 'user_table'
    def __str__(self):
        return self.phone

class TravelModel(models.Model):
    t_name = models.CharField('线路名称', max_length=10)
    described = models.CharField('描述', max_length=100)
    price = models.CharField('价格', max_length=10)
    class Meta:
        db_table = 'travel_table'
    def __str__(self):
        return self.t_name
